<?php
Class Index extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->data['controller'] = 'index';
        $this->load->model('Mindex');
        
    }
    
    public function index()
    {
        $this->data['data'] = $this->Mindex->getAdv();
        $this->load->view('temp/'.$this->data['data']->folder_campaign.'/index', $this->data);
    }
    
    public function cronactive()
    {
        echo $this->Mindex->activeAdv();
    }
    
    public function croncomplate()
    {
        echo $this->Mindex->complateAdv();
    }

}